package com.ryskoo.controller.basicdata;

import com.ryskoo.basicdata.industry.domain.IndustryPO;
import com.ryskoo.basicdata.industry.service.IIndustryService;
import com.ryskoo.framework.core.controller.BasicHandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 行业管理
 * @author BeHappy
 */
@Controller
@RequestMapping("/vendor/basicdata/industry")
public class IndustryController extends BasicHandler<IndustryPO> {

    private static final String TEMPLATE_PATH = "system/basicdata/industry";

    private static final String MODULE_NAME = "Industry";

    private IIndustryService industryService;

    /**
     * 消费者注入
     *
     * @param industryConsumer 消费者基类
     */
    @Autowired
    protected void setService(IIndustryService industryService) {
        this.industryService = industryService;
        super.setService(industryService);
    }

    public IndustryController() {
        super(TEMPLATE_PATH, MODULE_NAME);
    }


}
